import request from '@/utils/request'


export function getList(params) {

  return request({
    url: '/tg-group',
    method: 'get',
    params: params
  })
}


export function getOneById(id) {

  return request({
    url: '/tg-group/'+ id,
    method: 'get',
  })
}

export function add(data) {

  return request({
    url: '/tg-group',
    method: 'post',
    data: data
  })
}

export function edit(data) {

  return request({
    url: '/tg-group',
    method: 'put',
    data: data
  })
}
export function del(ids) {

  return request({
    url: '/tg-group?idList='+ids,
    method: 'delete',
    data: {ids}
  })
}

